package priv.pattern.builder;

import priv.pattern.builder.service.impl.*;

/*
 * 作者：m鹏h
 * 时间；2024/6/1 17:38
 * 描述： 构建套餐的类
 **/
public class BuilderMeal {

    /*
     * 构建套餐一
     * @author M鹏H
     * date 2024/6/1
     **/
    public Meal meal1() {
        Meal meal = new Meal();
        meal.setMealList(new MeatBurgerImpl());
        meal.setMealList(new CokeImpl());
        meal.setMealList(new RoastedSausageImpl());
        return meal;
    }

    /*
     * 构建套餐二
     * @author M鹏H
     * date 2024/6/1
     **/
    public Meal meal2() {
        Meal meal = new Meal();
        meal.setMealList(new VegetarianDietBurgerImpl());
        meal.setMealList(new FruitJuiceImpl());
        meal.setMealList(new PopcornChickenImpl());
        return meal;
    }

    /*
     * 构建套餐三
     * @author M鹏H
     * date 2024/6/1
     **/
    public Meal meal3() {
        Meal meal = new Meal();
        meal.setMealList(new MeatBurgerImpl());
        meal.setMealList(new MilkImpl());
        meal.setMealList(new ChickenStripsImpl());
        return meal;
    }

}
